#pragma once

#include <QtWidgets/QWidget>
#include "ui_sdlqtrgb.h"
#include <thread>
class SdlQtRGB : public QWidget
{
    Q_OBJECT

public:
    SdlQtRGB(QWidget *parent = Q_NULLPTR);
    ~SdlQtRGB();
    // void timerEvent(QTimerEvent *ev) override;
    void resizeEvent(QResizeEvent *ev) override;
    // 线程入口
    void Main();
signals:
    void ViewS();
public slots:
    void View();

private:
    std::thread thread_;
    bool is_exit_ = false;
    Ui::SdlQtRGBClass ui;
};
